package com.tanxi521.springboot.mapper;

import com.tanxi521.springboot.pojo.AllPlayerInfoCardInfo;
import com.tanxi521.springboot.pojo.PlayerAccount;
import org.springframework.stereotype.Repository;

@Repository
public interface PlayerAccountMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PlayerAccount record);

    int insertSelective(PlayerAccount record);

    PlayerAccount selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PlayerAccount record);

    int updateByPrimaryKey(PlayerAccount record);

    PlayerAccount selectByPlayerRealName(PlayerAccount playerAccount);

    int selectCount(AllPlayerInfoCardInfo allPlayerInfoCardInfo);

    int selectPlayerOnlineCount();

    int giveUserForEverVip(String name, long time, String vip);

    int giveUserVip(String name, long start, String vip, Long duration);

    int deleteUserVip(String name);

    int updateUserMoney(String name, Double money);

    int updateUserPoint(String name, Integer point);

    int updateUserPwd(String userName, String newPwd);
}